package com.wjj.sixinone.mapper;

import com.wjj.sixinone.common.pojo.dto.BedDTO;
import com.wjj.sixinone.common.pojo.dto.BedStatusDTO;
import com.wjj.sixinone.common.pojo.entity.Bed;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 小王不秃头
 * @since 2024-07-22
 */
public interface BedMapper extends BaseMapper<Bed> {

    List<Bed> selectRoomByLimit(BedDTO bedDTO);

    Integer count(BedDTO bedDTO);

    Integer selectBedCount(String roomNo);

    List<String> selectBedNo(String roomNo);

    List<String> selectBedGoodNo(@Param("roomNo") String roomNo, @Param("bedStatus") String BedStatus);

    void updateBedStatus(BedStatusDTO bedStatusDTO);
}
